package cn.tedu._05mvcboot02.mapper;

import cn.tedu._05mvcboot02.pojo.entity.User;
import cn.tedu._05mvcboot02.pojo.dto.UserDto;
import cn.tedu._05mvcboot02.pojo.vo.UserVo;
import cn.tedu._05mvcboot02.pojo.vo.UserVo1;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

//@Mapper
public interface UserMapper {

    //注册功能
    int insertUser(User user);

    //注销功能
    int deleteUser(String userName);

    //修改功能
    int updateUser(UserDto userDto);

    //查询功能
    User selectUser(String userName);

    List<UserVo> selectUsers();

    UserVo1 selectById(Integer id);

}
